package com.cloud.shopping.pay.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cloud.shopping.pay.mapper.PayLogMapper;
import com.cloud.shopping.pay.model.PayLog;
import com.cloud.shopping.pay.service.PayLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author John.zhang
 * @version Id: PayLogServiceImpl, v 1.0 2021/1/5 10:02 ZhiYong Exp $
 */
@Service
public class PayLogServiceImpl extends ServiceImpl<PayLogMapper, PayLog> implements PayLogService {

    @Resource
    private PayLogMapper payLogMapper;

    @Override
    public void add(PayLog payLog) {
        //删除
        payLogMapper.deleteById(payLog.getId());
        //增加
        payLogMapper.insert(payLog);
    }
}

